<?php
/*
	插件初始化
*/
namespace jy_mayitwc;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->plugins=array();
	$plugin->setting=$plugin->plugin_setting('basic');
	$plugin->passed=array('待上链','已上链成功','上链失败');
	$plugin->uptypes=array('product'=>'商品信息','order'=>'租赁订单信息');
	$plugin->islian=array('未上链','已上链');
	$plugin->mainclass=array(
		'3C'=>array('id'=>'3C','title'=>'3C办公','subclass'=>array(
			'3c_mobile'=>array('id'=>'3c_mobile','title'=>'手机'),
			'3c_pc'=>array('id'=>'3c_pc','title'=>'电脑'),
			'3c_camera'=>array('id'=>'3c_camera','title'=>'摄影'),
			'3c_office'=>array('id'=>'3c_office','title'=>'办公设备'),
			'3c_other'=>array('id'=>'3c_other','title'=>'3C-其他'),
			'3c_mobile_ABM'=>array('id'=>'3c_mobile_ABM','title'=>'ABM类手机'),
		)),
		'IOT'=>array('id'=>'IOT','title'=>'IOT','subclass'=>array(
			'iot_auto_container'=>array('id'=>'iot_auto_container','title'=>'售卖柜'),
			'iot_stage'=>array('id'=>'iot_stage','title'=>'驿站'),
			'iot_other'=>array('id'=>'iot_other','title'=>'IOT-其他'),
		)),
		'NE'=>array('id'=>'NE','title'=>'新能源','subclass'=>array(
			'ne_battery'=>array('id'=>'ne_battery','title'=>'电池'),
			'ne_electric_car'=>array('id'=>'ne_electric_car','title'=>'电动车'),
			'ne_other'=>array('id'=>'ne_other','title'=>'新能源-其他'),
		)),
		'GENERAL'=>array('id'=>'GENERAL','title'=>'泛行业','subclass'=>array(
			'general_furniture'=>array('id'=>'general_furniture','title'=>'家具'),
			'general_tv'=>array('id'=>'general_tv','title'=>'家电'),
			'general_other'=>array('id'=>'general_other','title'=>'泛其他'),
		)),
	);
	$plugin->mainclass2=array(
		array('id'=>'3C','title'=>'3C办公','subclass'=>array(
			array('id'=>'3c_mobile','title'=>'手机'),
			array('id'=>'3c_pc','title'=>'电脑'),
			array('id'=>'3c_camera','title'=>'摄影'),
			array('id'=>'3c_office','title'=>'办公设备'),
			array('id'=>'3c_other','title'=>'3C-其他'),
			array('id'=>'3c_mobile_ABM','title'=>'ABM类手机'),
		)),
		array('id'=>'IOT','title'=>'IOT','subclass'=>array(
			array('id'=>'iot_auto_container','title'=>'售卖柜'),
			array('id'=>'iot_stage','title'=>'驿站'),
			array('id'=>'iot_other','title'=>'IOT-其他'),
		)),
		array('id'=>'NE','title'=>'新能源','subclass'=>array(
			array('id'=>'ne_battery','title'=>'电池'),
			array('id'=>'ne_electric_car','title'=>'电动车'),
			array('id'=>'ne_other','title'=>'新能源-其他'),
		)),
		array('id'=>'GENERAL','title'=>'泛行业','subclass'=>array(
			array('id'=>'general_furniture','title'=>'家具'),
			array('id'=>'general_tv','title'=>'家电'),
			array('id'=>'general_other','title'=>'泛其他'),
		)),
	);
}